<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title></title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport"
          content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi"/>
    <link rel="stylesheet" href="/X-admin/css/font.css">
    <link rel="stylesheet" href="/css/xadmin.css">
    <script src="/lib/layui/layui.js" charset="utf-8"></script>
    <script type="text/javascript" src="/js/xadmin.js"></script>
    <!-- 让IE8/9支持媒体查询，从而兼容栅格 -->
    <!--[if lt IE 9]>
    <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
    <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
</head>
<body>
<form class="layui-form" >
    <div class="layui-form-item" th:if="${power}">
        <label class="layui-form-label">qq</label>
        <div class="layui-input-block">
            <input type="text" id="userQQ1" required  readonly="readonly"   autocomplete="off" class="layui-input" th:value="${userQQ}" >
        </div>
    </div>
    <div class="layui-form-item" th:unless="${power}">
        <label class="layui-form-label">qq</label>
        <div class="layui-input-block">
            <input type="text" id="userQQ" required    autocomplete="off" class="layui-input" th:value="${userQQ}" >
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">伤害</label>
        <div class="layui-input-block">
            <input type="text" id="hurt" required lay-verify="number"   placeholder="请输入伤害值" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item" th:if="${power}">
        <label class="layui-form-label">当前周目</label>
        <div class="layui-input-block">
            <input type="text" id="loop1" required  readonly="readonly"   autocomplete="off" class="layui-input" th:value="${fightStatue.getLoop()}">
        </div>
    </div>
    <div class="layui-form-item" th:unless="${power}">
        <label class="layui-form-label">当前周目</label>
        <div class="layui-input-block">
            <input type="text" id="loop" required    autocomplete="off" class="layui-input" th:value="${fightStatue.getLoop()}">
        </div>
    </div>
    <div class="layui-form-item" th:if="${power}">
        <label class="layui-form-label">当前王位</label>
        <div class="layui-input-block">
            <input type="text" id="serial1" required  readonly="readonly"  autocomplete="off" class="layui-input" th:value="${fightStatue.getSerial()}">
        </div>
    </div>
    <div class="layui-form-item" th:unless="${power}">
        <label class="layui-form-label">当前王位</label>
        <div class="layui-input-block">
            <input type="text" id="serial" required   autocomplete="off" class="layui-input" th:value="${fightStatue.getSerial()}">
        </div>
    </div>
    <div class="layui-form-item" th:if="${power}">
        <label class="layui-form-label">日期</label>
        <div class="layui-input-block">
            <input type="text" id="time1" required  readonly="readonly"  autocomplete="off" class="layui-input" th:value="${time}">
        </div>
    </div>
    <div class="layui-form-item" th:unless="${power}">
        <label class="layui-form-label">日期</label>
        <div class="layui-input-block">
            <input type="text" id="time" required   autocomplete="off" class="layui-input" th:value="${time}">
        </div>
    </div>

    <script type="text/javascript">
        layui.use('laydate', function(){
            var laydate = layui.laydate;
            laydate.render({
                elem: '#time', //指定元素
                type: 'date', //指定元素
                format:"y:MM:dd",//指定元素
                value: new Date(),
                max :0
            });
            var laydate1 = layui.laydate;
            laydate1.render({
                elem: '#time1', //指定元素
                type: 'date', //指定元素
                format:"y:MM:dd",//指定元素
                value:new Date(),
                max :0
            });
        });
    </script>
</form>
</body>
</html>